the right way to compare floats in python